import request from '@/utils/request'

// 查询列表
export function listInfo(query) {
  return request({
    url: '/ranking/supervision/list',
    method: 'get',
    params: query
  })
}

// 新增信息
export function addInfo(data) {
  return request({
    url: '/ranking/supervision',
    method: 'post',
    data: data
  })
}

// 修改信息
export function updateInfo(data) {
  return request({
    url: '/ranking/supervision',
    method: 'put',
    data: data
  })
}

// 删除信息
export function delInfo(proId) {
  return request({
    url: '/ranking/supervision/' + proId,
    method: 'delete'
  })
}
